home *** CD-ROM | disk | FTP | other *** search
/ Pascal Super Library / Pascal Super Library (CW International)(1997).bin / LIBRARY / PCTV3N3 / STRNDEL.C < prev    next >
Text File  |  1992-04-09  |  229b  |  9 lines

  1. /* strndel:
  2.    delete n characters from string s starting at position p. */
  3.  
  4. void strndel(char *s, int p, int n)
  5. {
  6.    for(; (*(s+p) = *(s+p+n)) != '\0';s++)
  7.       *(s+p+n) = '\0';            /* delete and zero-fill */
  8. }
  9.